﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeoK.Common;

namespace LeoK.TM.Entity
{
    public class TM_TimeLine : EntityBase
    {
        private int _id;

        [EB(IsReadOnly = true)]
        [Display(Name = "ID")]
        public int ID
        {
            get { return _id; }
            set
            {
                _id = value;
                OnPropertyChanged();
            }
        }

        [Display(Name = "开始时间")]
        public DateTime StartTime { get; set; }

        [Display(Name = "结束时间")]
        public DateTime EndTime { get; set; }

        [EB(IsReadOnly = true)]
        [Display(Name = "消耗")]
        public int TimeSpan { get; set; }

        [EBAttribute(AllowFilter = true)]
        [Display(Name = "任务")]
        public int TID { get; set; }

        [Display(Name = "备注")]
        public string Note { get; set; }

        public TM_TimeLine()
        {
            StartTime = DateTime.Now;
            EndTime = DateTime.Now;
        }
    }
}
